home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
whichrx1.2
/
which.rexx
Wrap
OS/2 REXX Batch file
|
1990-02-01
|
685b
|
41 lines
/* which.rexx
A shell for C:Which that knows of WShell's global path
$Author: jh $
$Date: 90/01/30 23:13:34 $
$Revision: 1.2 $
$State: Exp $
$Log: which.rexx,v $
Revision 1.2 90/01/30 23:13:34 jh
Check for the existance of a global path in ENV:Path
Revision 1.1 90/01/30 21:07:48 jh
Initial revision
*/
FailAt 30
Parse Arg args
if ~ Exists('ENV:Path') then do
"C:Which" args
exit
end
"Path Show | ExecIO From 2 Stem oldpath."
localpath = ''
do i = 1 to oldpath.0 - 1
localpath = localpath' 'oldpath.i
end
"ExecIO Read ENV:Path For 1 Var globalpath"
"Path Add" globalpath
"C:Which" args
"Path Reset"
"Path Add" localpath